package com.immediatus.engine.contracts;

import com.immediatus.engine.input.TouchEvent;

public interface ITouchArea{

    public boolean isVisible();

    public boolean contains(final float x_, final float y_);

    public float[] convertLayerToLocalCoordinates(final float x_, final float y_);

    public float[] convertLocalToLayerCoordinates(final float x_, final float y_);

    public boolean onAreaTouched(final TouchEvent event_, final float touchAreaLocalX_, final float touchAreaLocalY_);

    public interface ITouchAreaMatcher extends IMatcher<ITouchArea>{}
}
